package Extends.DuoTai.test3;

public class mainTest {
    public static void main(String[] args) {
        Person p=new Person("老王",30);
        Dog d=new Dog("黑色",2);
        p.keeppet(d,"骨头");
        Cat c=new Cat("黑色",2);
        p.keeppet(c,"鱼");
      /*  Person p=new Person("老王",29);
        Dog d=new Dog("黑色",2);
        Cat c=new Cat("黑色",2);
        p.keeppet();//选择 Animal a String something 的类型。*/
    }
}
